package com.obixlabs.smorgasbord.dexchange.marshalling;

import org.dozer.DozerBeanMapper;

import com.obixlabs.smorgasbord.dexchange.User;
import com.obixlabs.smorgasbord.domainmodel.security.UserImpl;

public class UserMarshallerImpl implements UserMarshaller
{
	private DozerBeanMapper dozerBeanMapper;

	@Override
	public User convert(UserImpl domainObject)
	{
		User result;
		result = dozerBeanMapper.map(domainObject, User.class);
		return result;
	}
	
	public com.obixlabs.smorgasbord.domainmodel.security.User
				convert(User exchangeObject)
	{
		com.obixlabs.smorgasbord.domainmodel.security.User result;		
		result = dozerBeanMapper.map(exchangeObject, 
						com.obixlabs.smorgasbord.domainmodel.security.User.class);
		return result;
	}	
}//end class def